/* 导航.css - 蓝橙配色版本 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html, #container {
    width: 100%;
    height: 100%;
    font-family: 'Inter', sans-serif;
    color: var(--dark-color);
}

:root {
    /* 配色方案：蓝橙配色 */
    --primary-color: #3B82F6;      /* 主蓝色 */
    --primary-dark: #1D4ED8;       /* 深蓝色 */
    --secondary-color: #FF7D00;    /* 橙色强调 */
    --dark-color: #1E293B;         /* 深灰文本 */
    --light-color: #FFFFFF;        /* 纯白色背景 */
    --neutral-color: #64748B;      /* 中性灰 */
    --border-color: #E2E8F0;       /* 边框颜色 */
    --shadow: 0 10px 30px rgba(59, 130, 246, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
}

/* 控制面板样式 */
#controlPanel {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 320px;
    background: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    z-index: 100;
    overflow: hidden;
    transform: translateY(0);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

#controlPanel:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.18);
}

.panel-header {
    padding: 16px 20px;
    background: var(--primary-color);
    color: var(--light-color);
    border-bottom: 2px solid var(--primary-dark);
    position: relative;
}

.panel-header h2, .panel-header h3 {
    font-weight: 600;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-body {
    padding: 20px;
}

.input-group {
    margin-bottom: 16px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 5px;
}

.input-group label i {
    color: var(--primary-color);
}

.input-group input, .input-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: var(--light-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.input-group input:focus, .input-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

button {
    background: transparent;
       color: var(--dark-color);
       border: 1px solid var(--border-color);
       border-radius: 6px;
       padding: 8px 12px;
       font-size: 14px;
       font-weight: 500;
       cursor: pointer;
       display: inline-flex;
       align-items: center;
       justify-content: center;
       gap: 6px;
       transition: all 0.3s ease;
       box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.4);
}

button i {
    transition: var(--transition);
}

button:hover i {
    transform: translateX(3px);
}

/* 结果面板样式 */
#resultPanel {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 350px;
    max-height: 80vh;
    background: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    z-index: 100;
    display: none;
    flex-direction: column;
    transform: translateY(0);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

#resultPanel:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.18);
}

#resultPanel .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    font-size: 24px;
    cursor: pointer;
    padding: 0 8px;
    transition: all 0.3s;
    color: rgba(255, 255, 255, 0.7);
}

.close-btn:hover {
    color: var(--light-color);
    transform: scale(1.2);
}

.panel-content {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
    background-color: var(--light-color);
}

/* 路线摘要样式 */
.route-summary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background-color: var(--light-color);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.summary-item i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

/* 加载指示器 */
.loading {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 15px 0;
    color: var(--primary-color);
    font-size: 14px;
    gap: 10px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(59, 130, 246, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 自定义地图标记样式 */
.amap-marker-label {
    border: none !important;
    background-color: transparent !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
    color: var(--dark-color) !important;
}

/* 高德地图样式覆盖 */
.amap-info-content {
    font-family: 'Inter', sans-serif !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    border: none !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    #controlPanel, #resultPanel {
        width: calc(100% - 40px);
        max-width: 350px;
        left: 20px;
        right: auto;
    }
    
    #resultPanel {
        top: calc(50% + 20px);
    }
}